# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pytest-socket
pkgver=0.4.1
pkgrel=1
pkgdesc="Pytest Plugin to disable socket calls during tests"
url="https://pypi.org/project/pytest-socket/"
arch="noarch"
license="MIT"
depends="
	py3-pytest
	python3
	"
makedepends="py3-setuptools"
source="https://pypi.python.org/packages/source/p/pytest-socket/pytest-socket-$pkgver.tar.gz"
options="!check" # No tests in pypi package and Github tarball unusable for distros
builddir="$srcdir/pytest-socket-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
d929c447767522ead4b6a2e1f27cda8459674a099ac222bf194a69e222837b97101cc6f3ab3eb177f2cf97af8d2aa7538fe4acdfc6eb63d11a902c3e09d0f48f  pytest-socket-0.4.1.tar.gz
"
